<template>
  <div>
    <search-book />
  </div>
</template>

<script>
import SearchBook from '@/views/admin/index'
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default {
  name: 'DashboardAdmin',
  components: { SearchBook }
}
// export const constantRoutes = [
// {
//   path: '/',
//   component: Layout,
//   redirect: '/dashboard',
//   children: [
//     {
//       path: 'dashboard',
//       component: () => import('@/views/dashboard/index'),
//       name: 'Dashboard',
//       meta: { title: '', icon: 'dashboard', affix: true }
//     }
//   ]
// },
// {
//   path: '/admin',
//   component: SearchBook,
//   redirect: '/admin/index',
//   // meta: { title: '', icon: 'peoples', roles: ['admin'] },
//   children: [{
//     path: '/admin/index',
//     component: () => import('@/views/admin/index'),
//     meta: { title: '图书搜索', icon: 'peoples', roles: ['admin'] }
//   }
//   ]
// },
// {
//   path: '/admin',
//   component: AddBook,
//   redirect: '/admin/addbook',
//   // meta: { title: '', icon: 'peoples', roles: ['admin'] },
//   children: [{
//     path: '/admin/addbook',
//     component: () => import('@/views/admin/addbook'),
//     meta: { title: '图书入库', icon: 'peoples', roles: ['admin'] }
//   }
//   ]
// },
// 404 page must be placed at the end !!!
//   { path: '*', redirect: '/404', hidden: true }
// ]
</script>

